import service from "../utils/request";

//添加用户
export function login(fromData) {
  return service({
    url: `/oauth/token`,
    method: "post",
    data: fromData,
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}


//添加用户
export function logout(fromData) {
  return service({
    url: `/oauth/removeToken`,
    method: "delete",
    data: fromData,
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}
